home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Aminet 22
/
Aminet 22 (1997)(GTI - Schatztruhe)[!][Dec 1997].iso
/
Aminet
/
comm
/
term
/
AmiTEL310.lha
/
AmiTEL.install
< prev
next >
Wrap
Text File
|
1997-08-28
|
14KB
|
478 lines
;*******************************************;
; ;
; $VER: AmiTEL installation v3.1 (28/08/97) ;
; ;
; Script Installer for AmiTEL. ;
; ;
; © 1992-1997 Ldfa. ;
; ;
;*******************************************;
(complete 0)
;
; Initialisations.
;
(set @app-name "AmiTEL")
; Locale strings.
(if (= @language "français")
(
(set default-guide "AmiTEL.guide")
(set #bad-kick (cat "\nAmiTEL ne fonctionne qu'avec un KickStart 2.04+."))
(set #bad-level (cat "\nL'installation d'AmiTEL nécessite au moins le niveau 'EXPERT'. "
"Relancez l'installation et selectionnez un niveau approprié.\n"))
(set #intro (cat "Bienvenue sur le programme d'installation d'AmiTEL "
"v3.1. Cette installation utilise le programme "
"'Installer' de Commodore pour les ordinateurs Amiga.\n"))
(set #dest-dir (cat "\nSélectionnez une unité dans laquelle sera crée le "
"répertoire AmiTEL.\n"))
(set #dest-help (cat "\nLe répertoire 'AmiTEL' qui va être crée contiendra tous les "
"fichiers nécessaires au bon fonctionnement du programme.\n"))
(set #make-dir (cat "\nVoulez vous créer le répertoire 'AmiTEL' ?\n"))
(set #prg-file (cat "\nSelectionnez les programmes a installer :\n"))
(set #prg-help (cat "\n'AmiTEL' est le programme principal de l'application, "
"'Amigatel_w3' est un script Arexx de connexion à Amigatel via Internet, "
"'Update' permet de mettre à jour le fichier 'AmiTEL.phone' "
"s'il a été crée avec une version d'AmiTEL < 2.0.\n"))
(set #ex-file (cat "\nVoulez vous installer les fichiers d'exemples d'AmiTEL ?\n"))
(set #ex-help (cat "\n'Exemple.vdt' est un fichier d'exemple au format Videotex "
"et 'Example.pst' est un fichier d'exemple au format Prestel.\n"))
(set #sel-file (cat "\nSelectionnez le fichier à installer :\n"))
(set #key-file (cat "\nVoulez vous installer votre clé d'enregistrement ?\n"))
(set #key-help (cat "\nVotre clé d'enregistrement est personnelle. Elle permet de "
"débloquer les fonctions qui ne sont pas disponibles dans la "
"version de démonstration.\n"))
(set #old-cfg (cat "\nVoulez vous supprimer le fichier 'S:AmiTEL.cfg' obsolète ?\n"))
(set #old-font (cat "\nVoulez vous supprimer les fontes Minitel obsolètes ?\n"))
(set #old-bbt (cat "\nVoulez vous supprimer le fichier 'BBTPro' obsolètes ?\n"))
(set #old-help (cat "\nLes fichiers 'BBTPro', 'S:AmiTEL.cfg' et les fontes Minitel"
" sont obsolètes.\n"))
(set #doc-file (cat "\nVoulez vous installer la documentation d'AmiTEL ?\n"))
(set #doc-help (cat "\nLa documentation d'AmiTEL doit être installée dans le même "
"répertoire que le programme principal pour bénéficier de "
"l'aide en ligne.\n"))
(set #rexx-file (cat "\nVoulez vous installer les fichiers script ARexx ?\n"))
(set #rexx-help (cat "\nLes exemples de script ARexx vous permettrons de découvrir toutes "
"les potentialités des commandes ARexx d'AmiTEL. Vous devez "
"obligatoirement les installer dans le répertoire 'REXX:'.\n"))
(set #xpr-lib (cat "\nVoulez vous installer les protocoles de téléchargement XPR ?\n"))
(set #xpr-help (cat "\nLes protocoles de téléchargement XPR permettent de télécharger "
"des programmes sur les serveurs Amiga sans avoir à utiliser des "
"programmes externes.\n"))
(set #020-lib (cat "\nVoulez vous installer les versions pour micro-processeurs 020/030/040 ?\n"))
(set #020-help (cat "\nSi vous possédé un micro-processeur 020, 030 ou 040, vous pouvez "
"installer les versions spécialement compilées pour ceux-ci.\n"))
(set #bbt-lib (cat "\nVoulez vous copier la librairie XPRBBTPro dans LIBS: ?\n"))
(set #moon-lib (cat "\nVoulez vous copier la librairie XPRMoondial dans LIBS: ?\n"))
(set #req-lib (cat "\nVoulez vous copier la librairie ReqTools dans LIBS: ?\n"))
(set #odu-lib (cat "\nVoulez vous copier la librairie OwnDevUnit dans LIBS: ?\n"))
(set #update (cat "\n\nIMPORTANT\n\n"
"N'oubliez pas de mettre à jour votre fichier\n"
"'AmiTEL.phone' en utlisant le commande 'Update'\n"
"si votre ancienne version est < à 2.0 uniquement.\n"))
)
(
(set default-guide "AmiTEL.English.guide")
(set #bad-kick (cat "\nAmiTEL works only with 2.04+ kickstart."))
(set #bad-level (cat "\nAmiTEL installation requires at least the 'EXPERT' user level. "
"Restart installation and select appropriate user level.\n"))
(set #intro (cat "Welcome on the AmiTEL v3.1 installation program. "
"This installation use Commodore 'Installer' "
"program for the Amiga Computer.\n"))
(set #dest-dir (cat "\nSelect the destination drawer where AmiTEL "
"directory must be created.\n"))
(set #dest-help (cat "\n'AmiTEL' drawer which will be created will hold all necessary "
"files for this application.\n"))
(set #make-dir (cat "\nDo you want to create the 'AmiTEL' drawer ?\n"))
(set #prg-file (cat "\nSelect program files to install :\n"))
(set #prg-help (cat "\n'AmiTEL' is the main application program, "
"'Amigatel_w3' is an Arexx script of Amigatel connexion via Internet, "
"'Update' allow to upgrade 'AmiTEL.phone' file "
"from old AmiTEL version < 2.0.\n"))
(set #ex-file (cat "\nDo you want to install AmiTEL examples files ?\n"))
(set #ex-help (cat "\n'Exemple.vdt is a Videotext example file and"
" Example.pst is a Prestel example file.\n"))
(set #sel-file (cat "\nSelect file to install :\n"))
(set #key-file (cat "\nDo you want to install your registation keyfile ?\n"))
(set #key-help (cat "\nYour registered key is personal. it give at your "
"program all these functionality.\n"))
(set #old-cfg (cat "\nDo you want to delete the old 'S:AmiTEL.cfg' file ?\n"))
(set #old-bbt (cat "\nDo you want to delete the old 'BBTPro' file ?\n"))
(set #old-font (cat "\nDo you want to delete the old Minitel fonts ?\n"))
(set #old-help (cat "\n'BBTPro', 'S:AmiTEL.cfg' files and Minitel fontes are out of date.\n"))
(set #doc-file (cat "\nDo you want to install AmiTEL documentation ?\n"))
(set #doc-help (cat "\nAmiTEL documentation must be installed in the same drawer "
"than the main program to have online help possibility.\n"))
(set #cat-file (cat "\nDo you want to install english catalogue file ?\n"))
(set #cat-help (cat "\nEnglish catalogue file permit to have all text in english.\n"))
(set #rexx-file (cat "\nDo you want to install ARexx script files ?\n"))
(set #rexx-help (cat "\nSome ARexx script files permit to show you all powerfull "
"AmiTEL ARexx commands. You must installed them in 'REXX:' drawer.\n"))
(set #xpr-lib (cat "\nDo you want to install XPR transfer protocols ?\n"))
(set #xpr-help (cat "\nXPR transfer protocol permit transfert without external "
"program needed.\n"))
(set #020-lib (cat "\nDo you want to install 020/030 versions ?\n"))
(set #020-help (cat "\nIf you have a 020, 030 or 040 processor, you can to "
"installe compiled versions for us.\n"))
(set #bbt-lib (cat "\nDo you want to copy XPRBBTPro library in LIBS: ?\n"))
(set #moon-lib (cat "\nDo you want to copy XPRMoondial library in LIBS: ?\n"))
(set #req-lib (cat "\nDo you want to copy ReqTools library in LIBS: ?\n"))
(set #odu-lib (cat "\nDo you want to copy OwnDevUnit library in LIBS: ?\n"))
(set #update (cat "\n\nWARNING\n\n"
"Don't forget to update your 'AmiTEL.phone' file with\n"
"'update' program only if your old version was < 2.0.\n"))
)
)
; Welcome message.
(welcome #intro)
; Test KickStart 2.04+.
(if (< (/ (getversion) 65536) 37)
(abort #bad-kick)
)
(if (< @user-level 2)
(abort #bad-level)
)
; Copy AmiTEL programs and documentation.
(set Path.Source (expandpath (pathonly @icon)))
(set Path.Dest
(tackon
(askdir
(prompt #dest-dir)
(help #dest-help)
(default "WORK:")
)
"AmiTEL"
)
)
(makedir Path.Dest
(prompt #make-dir)
(help @makedir-help)
(infos)
(confirm)
)
(copyfiles
(prompt #prg-file)
(help #prg-help)
(source Path.Source)
(dest Path.Dest)
(choices "AmiTEL"
"Amigatel_w3"
"Update")
(infos)
(confirm)
)
(complete 10)
; Copy 'Exemple.vdt' and 'Example.pst' files.
(if
(exists "Exemple.vdt")
(if
(askbool
(prompt #ex-file)
(help #ex-help)
(default 1)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source Path.Source)
(dest Path.Dest)
(choices "Exemple.vdt"
"Example.pst")
(confirm)
)
)
)
)
(complete 20)
; Copy 'AmiTEL.key' file.
(if
(exists "L/AmiTEL.key")
(if
(askbool
(prompt #key-file)
(help #key-help)
(default 1)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source "L")
(dest "L:")
(choices "AmiTEL.key")
(confirm)
)
)
)
)
(complete 30)
; Delete old 'AmiTEL.cfg', 'BBTPro' and fonts.
(if
(exists "S:AmiTEL.cfg")
(if
(askbool
(prompt #old-cfg)
(help #old-help)
(default 1)
)
(
(delete "S:AmiTEL.cfg")
)
)
)
(if
(exists "BBTPro")
(if
(askbool
(prompt #old-bbt)
(help #old-help)
(default 1)
)
(
(delete "BBTPro")
)
)
)
(if
(exists "FONTS:Minitel")
(if
(askbool
(prompt #old-font)
(help #old-help)
(default 1)
)
(
(delete "Fonts:Minitel/8")
(delete "Fonts:Minitel/16")
(delete "Fonts:Minitel")
(delete "Fonts:Minitel.font")
(delete "Fonts:Minitel16/8")
(delete "Fonts:Minitel16/16")
(delete "Fonts:Minitel16")
(delete "Fonts:Minitel16.font")
(delete "Fonts:Minitel80/8")
(delete "Fonts:Minitel80")
(delete "Fonts:Minitel80.font")
)
)
)
(complete 40)
; Copy 'AmiTEL.guide', 'XPRBBTPro.guide' et 'XPRMoonDial.guide' files.
(if
(askbool
(prompt #doc-file)
(help #doc-help)
(default 1)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source Path.Source)
(dest Path.Dest)
(choices default-guide)
(newname "AmiTEL.guide")
(infos)
(confirm)
)
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source Path.Source)
(dest Path.Dest)
(choices "XPRBBTPro.guide"
"XPRMoonDial.guide")
(infos)
(confirm)
)
)
)
(complete 50)
; Copy 'AmiTEL.catalog' file.
(if (= @language "english")
(if
(askbool
(prompt #cat-file)
(help #cat-help)
(default 1)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source Path.Source)
(dest Path.Dest)
(choices "AmiTEL_Prestel.macros")
(confirm)
)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source "Locale/Catalogs/English")
(dest "Locale:Catalogs/English")
(choices "AmiTEL.catalog")
(confirm)
)
)
)
)
(complete 60)
; Copy ARexx script files.
(if
(askbool
(prompt #rexx-file)
(help #rexx-help)
(default 1)
)
(
(copyfiles
(prompt #sel-file)
(help @copyfiles-help)
(source "Rexx")
(dest "REXX:")
(pattern "#?.amtl")
(confirm)
)
)
)
(complete 70)
; Copy 'XPRxxxxxx.library' files.
(if
(askbool
(prompt #xpr-lib)
(help #xpr-help)
(default 1)
)
(if
(askbool
(prompt #020-lib)
(help #020-help)
(default 1)
)
(
(copylib
(prompt #bbt-lib)
(help @copylib-help)
(source "Libs/xprbbtpro020.library")
(dest "LIBS:")
(newname "xprbbtpro.library")
(confirm)
)
(copylib
(prompt #moon-lib)
(help @copylib-help)
(source "Libs/xprmoondial020.library")
(dest "LIBS:")
(newname "xprmoondial.library")
(confirm)
)
)
(
(copylib
(prompt #bbt-lib)
(help @copylib-help)
(source "Libs/xprbbtpro.library")
(dest "LIBS:")
(confirm)
)
(copylib
(prompt #moon-lib)
(help @copylib-help)
(source "Libs/xprmoondial.library")
(dest "LIBS:")
(confirm)
)
)
)
)
(complete 80)
; Copy 'ReqTools.library' and 'OwnDevUnit.library' file.
(copylib
(prompt #req-lib)
(help @copylib-help)
(source "Libs/reqtools.library")
(dest "LIBS:")
(confirm)
)
(copylib
(prompt #odu-lib)
(help @copylib-help)
(source "Libs/OwnDevUnit.library")
(dest "LIBS:")
(confirm)
)
(complete 90)
; Update 'AmiTEL.phone' file.
(if
(exists (cat Path.Dest "/AmiTEL.phone"))
(message #update)
)
(complete 100)
; End of Program
(set @default-dest Path.Dest)
(exit)